<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0092)https://login.dangdang.com/signin.aspx?ReturnUrl=http://orderb.dangdang.com/myallorders.aspx -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>登录 - 当当网</title>
<meta name="csrf-token" content="{{ csrf_token() }}">
<link href="{{asset('login/login_150714.css')}}" rel="stylesheet" type="text/css">
<link href="{{asset('login/pop_cheat.css')}}" rel="stylesheet" type="text/css">
<link href="{{asset('login/captcha.css')}}" rel="stylesheet" type="text/css">
<script type="text/javascript" src="{{asset('login/jquery-1.8.2.min.js')}}"></script>
</head>
<body>
<div class="head">
	<a href="#">
	<img src="{{asset('login/logo_login.png')}}">
	</a>
	<ul class="clearfix">
		<li class="n1">
		<a href="#">货到付款</a>
		</li>
		<li class="n2">
		<a href="#">正品保障</a>
		</li>
		<li class="n3">
		<a href="#">上门退款</a>
		</li>
	</ul>
</div>
<form id="Form1" action="{{url('home/dologiner')}}" method="POST" onsubmit="">
	<input type="hidden" name="_token" value="<?php echo csrf_token(); ?>"> 
	<div class="wrap clearfix">
		
		<!-- 登录广告大图 -->
		<div class="pic">
			<a id="aBgPicUrlReferTo" target="_blank" dd_name="登录广告图" style="" href="#">
			<img id="J_loginTopAdIE8" style="display: none;" onerror="">
			</a>
		</div>
		<!-- 登录广告大图结束 -->
		<div class="infro">
			<!-- 用户名 -->
			<div class="username" id="username_div">
				<span></span>
				<input class="user" id="txtUsername" name="userName" type="text" placeholder="用户名"  maxlength="40" value=""  tabindex="1">
				<label class="pwdReplace" id="userReplacer" for="txtUsername" style="display:block"></label>
			</div>
			<p id="user_mindstyle" class="tips">
				<span id="liDivErrorMessage">请输入用户名</span>
			</p>
			<!-- 用户名结束 -->
			<!-- 密码 -->
			<div class="password" id="password_div">
				<span></span>
				<input class="pass" id="txtPassword" name="password" type="password" placeholder="密码" maxlength="20" autocomplete="off" errordata="0" tabindex="2">
				<label class="pwdReplace" id="pwdReplacer" style="display: block;" for="txtPassword"></label>
			</div>
			<p class="tips" id="pass_mindstyle">
				<span id="login_password_error" style="display: none">请填写长度为6-20个字符密码</span>
				<span class="big_tip" id="passwordCapslock">键盘大写锁定已打开，请注意大小写!</span>
			</p>
			
			 <!--验证码-->
			 <div>
				<div class="code">
				<span></span>
					<label for="" class="labelbox">
						<input type="text" placeholder="验证码" name="mycode" >
					</label>
				</div>
				<img src="{{url('admin/getcode')}}" id="codeimg" onclick="this.src='{{url('admin/getcode')}}?id='+Math.random();"width="126" height="38"/>
					<br/>
					<span id='icodemessage'></span>
			</div>
			<!-- 忘记密码及自动登陆  -->
			<p class="auto_login">
				<a href="#" tabindex="8">忘记密码？</a>
				<input class="auto_box" id="autologin" name="autologin" type="checkbox" tabindex="7" checked="" onfocus="this.blur();"><span style="display: none;">七天内自动登录</span><span class="safe" style="display: inline-block;">请勿在公用电脑上勾选此选项</span>
				<input type="hidden" id="ispersist" name="ispersist" value="on">
			</p>
			<!-- 登录  -->
			<p class="btn">
				<!--<a id="submitLoginBtn" href="javascript:void(0);" onclick="document.getElementById('Form1').submit();" tabindex="6">登&nbsp;录</a>-->
				<a id="submitLoginBtn" href="javascript:void(0);" onclick="" tabindex="6">登&nbsp;录</a>
				<!--<div id="submitLoginBtn"  onclick="" tabindex="6">登&nbsp;录</div>-->
			</p>
			<p class="register">
				<a class="register_btn" href="{{url('home/register')}}" tabindex="9">立即注册</a><span>使用合作网站登录</span>
			</p>
			<div class="partner clearfix" id="share_login">
				<dl>
					<dt><a class="qq" id="qqShare" href="#" title="QQ" tabindex="10">ＱＱ</a></dt>
					<dt><a class="wx" id="wxShare" href="#" title="微信" tabindex="11">微信</a></dt>
					<dt><a class="wb" id="wbShare" href="#" title="新浪微博" tabindex="12">新浪微博</a></dt>
					<dt><a class="alpay" id="alipayShare" href="#" title="支付宝" tabindex="13	">支付宝</a></dt>
					<dd id="showShareMore">
					<a class="more" href="#">更多<em></em></a>
					<ul id="shareMore" style="display:none">
						<li class="arrow"></li>
						<li><a id="doubanShare" href="#">豆瓣</a></li>
						<li><a id="baiduShare" href="#">百度</a></li>
						<li><a id="fetionShare" href="#">飞信</a></li>
						<li class="mr0"><a id="renrenShare" href="#">人人网</a></li>
					</ul>
					</dd>
				</dl>
			</div>
		</div>
	</div>

	{!! csrf_field() !!}
</form>
<script type="text/javascript">
	 $.ajaxSetup({
			headers: {
				'X-CSRF-TOKEN':$('meta[name="csrf-token"]').attr('content')
			}
		}); 
	var nlabel = false;
	var plabel = false;
	var clabel = false;
	//输入用户名的提示
	$("input[name=userName]").focus(function(){
		$("#liDivErrorMessage").show();
	}).blur(function(){
		$("#liDivErrorMessage").hide();
	});
	
	//输入密码的提示
	$("input[name=password]").focus(function(){
		$("#login_password_error").show();
	}).blur(function(){
		$("#login_password_error").hide();
	});
	//判断验证码
	$('input[name=mycode]').blur(function(){
			var code = $(this).val();
			if($("input[name=mycode]").val() != ""){
				$.ajax({
					url:'/home/cregistercode',
					data:{'mycode':code},
					type:'post',
					//async:false,
					success:function(mes){
						if(mes == 'yes'){
							clabel = true;
							$('#icodemessage').html('验证码正确！').css('color','green').show();
						}else if(mes == "no"){
							clabel = false;
							$('#icodemessage').html('请输入正确的验证码！').css('color','red').show();
						}
						
					}
				})
			}
		}).focus(function(){
			$("#icodemessage").hide();
		});
		
		//执行登录
		$('#submitLoginBtn').click(function(){
			var userName = $("input[name=userName]").val();
			var password = $("input[name=password]").val();
			if(clabel == true){
				$.ajax({
					url:'/home/dologin',
					data:{'userName':userName,"password":password},
					type:'post',
					//dataType:text,
					async:false,
					success:function(mes){
						if(mes == '输入的用户名不存在'){
							$('#liDivErrorMessage').html('用户名输入错误，请核对后重新输入。').css('color','red').show();
							return false;
						}else if(mes == "passwrong"){
							$("#login_password_error").html("密码输入错误，请核对后重新输入。").css('color','red').show();
							return false;
						}else if(mes == '没填写用户名'){
							$('#liDivErrorMessage').html('没填写用户名').css('color','red').show();
							return false;
						
						}else if(mes == "允许登录"){
							$("form").submit();
						} else if(mes == "该用户已经被冻结！"){
							$('#liDivErrorMessage').html('该用户已经被冻结！').css('color','red').show();
							return false;
						}
					}
				});
			}else{
				return false;
			}
		});
		
</script>
<!--页尾 开始 -->
<style type="text/css">
    .public_footer_box { width:100%; margin:0 auto; font:12px "\5b8b\4f53",Arial,Helvetica,sans-serif; clear:both;}
    .public_footer{ margin:0 auto; width:950px; padding:32px 5px 0;font:12px; color:#666; overflow:hidden;}
    .public_footer a{ color:#666!important; text-decoration:none; font-size:12px;}
    .public_footer a:hover{ color:#f60!important; text-decoration:underline;}
    .public_footer .sep{ display:inline-block; padding:0 18px;}
    .public_footer .footer_copyright{ padding-left:168px; margin:0 auto; width:792px; }
    .public_footer .footer_copyright span { float:left; display:inline}
    .public_footer .footer_copyright span{ padding-top:10px;}
    .public_footer .footer_copyright a { padding-right:4px;}
    .public_footer .footer_icon { margin:10px 0 0 335px;width:300px;height:57px;}
    .public_footer .validator,.public_footer .knet {float:left;display:inline;padding:0 5px;width:135px;height:47px;}
</style>

<div class="public_footer_box">
	<div class="public_footer">
		<div class="footer_copyright">
			<span>Copyright (C) 当当网 2004-2012, All Rights Reserved</span><span class="sep">|</span><span><a href="#" target="_blank">京ICP证041189号</a></span><span><a href="#" target="_blank">音像制品经营许可证 京音网8号</a></span>
			<div class="clear">
			</div>
		</div>
		<div class="footer_icon">
			<div class="validator">
				<a href="#" target="_blank" class="footer_img"><img src="{{asset('login/validate.gif')}}"></a>
			</div>
			<div class="knet">
				<!-- 可信网站LOGO安装开始 -->
				
				<a href="#" tabindex="-1" id="urlknet" target="_blank">
				<img width="128" height="47" alt="可信网站" name="CNNIC_seal" border="true" src="{{asset('login/knetSealLogo.png')}}" oncontextmenu="return false;" onclick="CNNIC_change(&#39;urlknet&#39;)">
				</a>
				<!-- 可信网站LOGO安装结束 -->
			</div>
			<div class="clear">
			</div>
		</div>
	</div>
</div>

<!--页尾 end --><!-- 防诈骗弹窗 开始 -->
<div class="masks" id="J_loginMask" style="display: none;">
	<iframe class="masks_bg">
	</iframe>
	<div class="pop_cheat">
		<h3>安全提醒</h3>
		<div class="pop_cheat_info clearfix">
			<div id="component_2713728">
			</div>
			<div>
				<span class="right">当当平台及销售商<b>不会以任何理由，要求您点击任何网址链接进行退款或支付操作。</b>当当客服电话400-106-6666，0527-80878888。</span>
			</div>
		</div>
		<div class="btn">
			<a id="J_loginMaskClose" href="#">知道了</a>
		</div>
	</div>
</div>
<!-- 防诈骗弹窗 结束 -->

<script type="text/javascript" src="{{asset('login/jquery-1.4.2.min.js')}}"></script>

</body>
</html>